<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../../../../lib/layui-v2.5.5/css/layui.css" media="all">
    <link rel="stylesheet" href="../../../../css/public.css" media="all">
</head>
<body>
<div class="layuimini-container">

    <div class="layuimini-main">

        <table class="layui-hide" id="currentTableId" lay-filter="currentTableFilter">
            <script type="text/html" id="currentTableBar">
            </script>

        </table>
    </div>
</div>

<script src="../../../../lib/layui-v2.5.5/layui.js" charset="utf-8"></script>
<script src="../../../../js/lay-config.js?v=1.0.4" charset="utf-8"></script>
<script>
    layui.use(['table', 'form', 'tableSelect'], function () {
        var $ = layui.jquery,
            table = layui.table,
            form = layui.form,
            tableSelect = layui.tableSelect;



    });
</script>
<script>
    layui.use(['form', 'layedit', 'laydate'], function () {
        var form = layui.form
            , layer = layui.layer
            , layedit = layui.layedit
            , laydate = layui.laydate,
            $ = layui.jquery,
            table = layui.table,
            layuimini = layui.layuimini;
        var userInfo = layui.data('userInfo');


        //加载信息
        table.render({
            elem: '#currentTableId',
            url: 'http://localhost:8080/EAE/findall',
            toolbar: '#toolbarDemo',
            defaultToolbar: ['filter', 'exports', 'print', {
                title: '提示',
                layEvent: 'LAYTABLE_TIPS',
                icon: 'layui-icon-tips'
            }],
            cols: [[
                {field: 'eid', width: 80, title: '临床实验编号'},
                {field: 'meid', width: 120, title: '器材编号'},
                {field: 'mename', width: 80, title: '器材名称'},
                {field: 'pid', width: 140, title: '患者编号'},
                {field: 'pname', width: 120, title: '患者姓名'},
                {field: 'did', width: 100, title: '医生编号'},
                {field: 'dname', width: 90, title: '医生姓名'},
                {field: 'meuse', width: 140, title: '该器材剩余可用数量'},
                {field: 'metype', width: 100, title: '器材类型'},
            ]],
            limits: [10, 15, 20, 25, 50, 100],
            limit: 15,
            page: true,
        });

    });
</script>

</body>
</html>